home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / Error in ODFDraw (was Re Unkno < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  1.5 KB  |  [TEXT/ttxt]

  1. Subject:     Error in ODFDraw (was Re: Unknown Error in OpenDoc or P.E.
  2. Sent:        9/13/96 2:55 PM
  3. Received:    9/13/96 2:55 PM
  4. From:        Scott Adler <sadler@spss.com>
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. >
  10. >> 
  11. >> I've just made some modifications to my part, and now whenever I close my 
  12. >> part I get the message: "An unknown error has occurred in OpenDoc or a 
  13. >> part editor." and the document closes, but it the process is still 
  14. >> running.
  15. >> 
  16. >> I know how to kill the process, but how do I track down what could be 
  17. >> causing this problem?
  18. >> 
  19. >> It started happening after I implemented dragging in my part (if that 
  20. >> helps).
  21. >
  22. > Do you have MacsBug installed? If so, aren't you dropping into that with 
  23. > some assert message?
  24. >
  25. > I was getting the same error message when I forgot to dead strip some
  26. > resources, but I was also getting an assert msg in MacsBug.
  27.  
  28. OK, after installing the debug version of ODFLib I get the errors, and I 
  29. tracked down the bug to an aborted drag causing the problem. I can 
  30. recreate it using ODFDraw (rev 1).
  31.  
  32. here are the steps:
  33. 1. open a new ODFDraw doc.
  34. 2. create a simple shape.
  35. 3. drag the shape, but have the drag aborted (let it go in the menu bar 
  36. for example).
  37. 4. Close the document
  38.  
  39. you then get the debug string: 
  40. FW_CFixedAllocator: An object of type FW_CPriv{BW|Color}PatternRep has 
  41. not been deleted prop
  42.  
  43. which results in the Unknown OpenDoc error.
  44.  
  45. What's up with that?
  46.  
  47. -Scott Adler